﻿using shenghua.Common.WordNodes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace shenghua.Basics.MemberFormItems
{
    public class MemberFormItem: WordNode
    {
        /// <summary>
        /// 注册时启用
        /// </summary>
        public bool EnableWhenRegister { get; set; }

        /// <summary>
        /// 是否是必须的
        /// </summary>
        public bool IsRequired { get; set; }

        public MemberFormItemType Type { get; set; }
    }

    public enum MemberFormItemType
    {
        Input = 0,
        Textarea = 1,
        Select = 2,
        Radio = 3,
        Date = 4
    }
}
